package com.cluck.alipay.repository;

import com.cluck.alipay.entity.Order;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 订单dao
 */
public interface OrderRepository extends JpaRepository<Order, Integer>, JpaSpecificationExecutor<Order> {

    /**
     * 根据订单号查询订单
     * @param orderNo
     * @return
     */
    Order findByOrOrderNo(String orderNo);
}
